package com.szy.douyou_gateway.config;

/**
 * @author sunziyan
 * @date 2022/02/09
 */
public enum ErrorMsgEnum {

    SUCCESS(200, "成功"),
    PARAM_IS_INVALID(10001, "参数无效"),
    PARAM_IS_NULL(10002, "参数为空"),
    RESULT_NOT_FOUND(20001, "找不到该结果"),
    INSERT_FAIL(30001, "插入失败"),
    UPDATE_FAIL(30002, "更新失败"),
    DELETE_FAIL(30003, "删除失败");






    private Integer code;
    private String desc;


    ErrorMsgEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer code(){
        return this.code;
    }

    public String desc(){
        return this.desc;
    }


}
